package com.lemon.reggie.mapper;

import com.lemon.reggie.pojo.dto.EditDishDTO;
import com.lemon.reggie.pojo.entity.Dish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 菜品管理 Mapper 接口
 * </p>
 *
 * @author Lemon
 * @since 2022-05-23
 */
public interface DishMapper extends BaseMapper<Dish> {

    void deleteDishById(@Param("id") Long id);

    Dish findOne(@Param("name") String name);

    Dish findEditOne(@Param("editDishDTO") EditDishDTO editDishDTO);
}
